-- GENERATED SPELL FOR [Writhing Lasher] --


function spell0_33387(pUnit, Event) --@Lash,n/a--
pUnit:FullCastSpellOnTarget(65062,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33387', 638, 1)
end

function Sorts_33387(pUnit, Event)
local choix_sorts_33387 = math.random(0, 0)
if choix_sorts_33387 == 0 then
pUnit:RegisterEvent('spell0_33387', 1, 1)
end
end

function mob33387_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33387', math.random(1500, 3000), 1)
end

function mob33387_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33387_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33387_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33387, 1, 'mob33387_Action')
RegisterUnitEvent(33387, 2, 'mob33387_Leave')
RegisterUnitEvent(33387, 3, 'mob33387_Kill')
RegisterUnitEvent(33387, 4, 'mob33387_Die')
